<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:composite="http://java.sun.com/jsf/composite"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">

<composite:interface>
	<composite:attribute name="title" />
</composite:interface>

<composite:implementation>

	<div>
		<h:panelGrid columns="2" id="community">

			<h:outputLabel for="name" value="Name:" />
			<h:outputLabel id="name" value="#{communityBean.currentCommunity.name}" />
			
			<h:outputLabel for="topic" value="Topic:" />
			<h:outputLabel id="topic" value="#{communityBean.currentCommunity.topic}" />
			
			<h:outputLabel for="description" value="Description:" />
			<h:outputLabel id="description" value="#{communityBean.currentCommunity.description}" />
		</h:panelGrid>	
	</div>	
	
	<div>
		<h:commandButton id="enter" value="Enter Community" action="#{communityController.enterCommunity}"/>		
	</div>
	
	<div>
		Show Community members...
	</div>
	
</composite:implementation>
</html>